<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>技能交换详情 - 社交圈</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/css/all.min.css">
    
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #60a5fa;
            --primary-dark: #2563eb;
            --secondary: #8b5cf6;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --bg-light: #f8fafc;
            --bg-white: #ffffff;
            --border-light: #e2e8f0;
            --radius: 12px;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-action:hover {
            background-color: var(--bg-light);
        }
        
        .nav-action.primary {
            color: var(--primary);
        }
        
        /* 用户信息卡片 */
        .user-card {
            background-color: var(--bg-white);
            padding: 16px;
            margin-bottom: 12px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .user-profile {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        
        .profile-avatar {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .profile-info {
            flex: 1;
        }
        
        .profile-name {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .profile-meta {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .profile-actions {
            display: flex;
            gap: 10px;
        }
        
        .action-btn {
            padding: 6px 16px;
            border-radius: 6px;
            font-size: 0.85rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .btn-primary {
            background-color: var(--primary);
            color: white;
            border: none;
        }
        
        .btn-secondary {
            background-color: var(--bg-light);
            color: var(--text-primary);
            border: 1px solid var(--border-light);
        }
        
        /* 技能详情卡片 */
        .skill-detail-card {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            margin-bottom: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
        }
        
        .detail-header {
            padding: 16px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .skill-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .skill-meta {
            display: flex;
            gap: 16px;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }
        
        .detail-content {
            padding: 16px;
        }
        
        .skill-description {
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 16px;
        }
        
        /* 技能交换区域 */
        .exchange-section {
            margin: 16px 0;
            padding: 12px;
            background-color: rgba(59, 130, 246, 0.05);
            border-radius: var(--radius);
        }
        
        .exchange-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--primary);
        }
        
        .exchange-container {
            display: flex;
            gap: 12px;
        }
        
        .exchange-column {
            flex: 1;
        }
        
        .exchange-label {
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 6px;
            display: block;
        }
        
        .exchange-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        
        .exchange-tag {
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            white-space: nowrap;
        }
        
        .offer-tag {
            background-color: rgba(16, 185, 129, 0.1);
            color: var(--success);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }
        
        .seek-tag {
            background-color: rgba(139, 92, 246, 0.1);
            color: var(--secondary);
            border: 1px solid rgba(139, 92, 246, 0.2);
        }
        
        .exchange-icon {
            align-self: center;
            color: var(--text-secondary);
        }
        
        /* 图片展示区 */
        .images-section {
            margin: 16px 0;
        }
        
        .images-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
        }
        
        .image-item {
            aspect-ratio: 1;
            overflow: hidden;
            border-radius: 8px;
        }
        
        .image-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* 技能详情标签 */
        .detail-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 16px 0;
        }
        
        .detail-tag {
            padding: 6px 12px;
            background-color: var(--bg-light);
            border-radius: 20px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            border: 1px solid var(--border-light);
        }
        
        /* 操作工具栏 */
        .action-toolbar {
            display: flex;
            padding: 12px 16px;
            background-color: var(--bg-white);
            border-top: 1px solid var(--border-light);
            border-bottom: 1px solid var(--border-light);
        }
        
        .toolbar-action {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            color: var(--text-secondary);
            font-size: 0.75rem;
        }
        
        .toolbar-action.active {
            color: var(--primary);
        }
        
        .action-icon {
            font-size: 1.1rem;
        }
        
        /* 留言区 */
        .comments-section {
            padding: 16px;
            background-color: var(--bg-white);
            margin-bottom: 12px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            border: 1px solid var(--border-light);
        }
        
        .comments-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        
        .comments-title {
            font-size: 1rem;
            font-weight: 600;
        }
        
        .comments-count {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }
        
        /* 留言输入框 */
        .comment-input-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .comment-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .comment-input-box {
            flex: 1;
            position: relative;
        }
        
        .comment-input {
            width: 100%;
            padding: 10px 12px;
            border-radius: 20px;
            border: 1px solid var(--border-light);
            font-size: 0.9rem;
            background-color: var(--bg-light);
            resize: none;
            height: 40px;
        }
        
        .comment-input:focus {
            outline: none;
            border-color: var(--primary-light);
        }
        
        .send-comment {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
        }
        
        /* 留言列表 */
        .comments-list {
            margin-bottom: 16px;
        }
        
        .comment-item {
            display: flex;
            gap: 10px;
            margin-bottom: 16px;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 4px;
        }
        
        .comment-author {
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        .comment-time {
            font-size: 0.75rem;
            color: var(--text-secondary);
        }
        
        .comment-text {
            font-size: 0.9rem;
            background-color: var(--bg-light);
            padding: 10px 12px;
            border-radius: 16px;
            border-top-left-radius: 4px;
            margin-bottom: 6px;
        }
        
        .comment-actions {
            display: flex;
            gap: 16px;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        /* 回复列表 */
        .replies-list {
            margin-left: 46px;
            margin-top: 8px;
        }
        
        .reply-item {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .reply-content {
            flex: 1;
        }
        
        .reply-text {
            font-size: 0.85rem;
            background-color: var(--bg-light);
            padding: 8px 10px;
            border-radius: 14px;
            border-top-left-radius: 4px;
            margin-bottom: 4px;
        }
        
        .reply-text span {
            color: var(--primary);
            font-weight: 500;
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            gap: 4px;
            flex: 1;
            height: 100%;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 1.2rem;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
        
        /* 加载更多 */
        .load-more {
            padding: 10px 0;
            text-align: center;
            font-size: 0.85rem;
            color: var(--primary);
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">技能详情</div>
        <button class="nav-action primary" id="shareBtn">
            <i class="fas fa-share-alt"></i>
        </button>
    </div>
    
    <!-- 用户信息卡片 -->
    <div class="user-card">
        <div class="user-profile">
            <img src="https://picsum.photos/id/64/200/200" alt="陈佳琪" class="profile-avatar">
            <div class="profile-info">
                <div class="profile-name">陈佳琪</div>
                <div class="profile-meta">
                    <span><i class="fas fa-map-marker-alt"></i> 3.2km</span>
                    <span><i class="fas fa-clock"></i> 今天活跃</span>
                </div>
                <div class="profile-actions">
                    <button class="action-btn btn-primary" id="contactBtn">
                        <i class="fas fa-comment"></i> 联系TA
                    </button>
                    <button class="action-btn btn-secondary" id="followBtn">
                        <i class="fas fa-plus"></i> 关注
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 技能详情卡片 -->
    <div class="skill-detail-card">
        <div class="detail-header">
            <h1 class="skill-title">UI设计技能交换摄影技巧</h1>
            <div class="skill-meta">
                <span><i class="fas fa-calendar-alt"></i> 发布于 3天前</span>
                <span><i class="fas fa-eye"></i> 128 浏览</span>
            </div>
        </div>
        
        <div class="detail-content">
            <p class="skill-description">
                大家好！我是一名有5年经验的UI设计师，目前在一家互联网公司工作。我擅长UI设计、原型制作和基础设计理论，熟悉Figma、Sketch等设计工具。<br><br>
                我一直对摄影很感兴趣，尤其是人像和风光摄影，但自己摸索进步很慢，希望能找到一位摄影爱好者或专业摄影师交流学习。<br><br>
                我们可以线上交流，也可以周末约线下见面，互相学习，共同进步！
            </p>
            
            <!-- 技能交换区域 -->
            <div class="exchange-section">
                <div class="exchange-title">技能交换</div>
                <div class="exchange-container">
                    <div class="exchange-column">
                        <span class="exchange-label">我能提供</span>
                        <div class="exchange-tags">
                            <span class="exchange-tag offer-tag">UI设计</span>
                            <span class="exchange-tag offer-tag">原型制作</span>
                            <span class="exchange-tag offer-tag">设计理论</span>
                            <span class="exchange-tag offer-tag">Figma</span>
                        </div>
                    </div>
                    
                    <div class="exchange-icon">
                        <i class="fas fa-exchange-alt fa-rotate-90"></i>
                    </div>
                    
                    <div class="exchange-column">
                        <span class="exchange-label">我想学习</span>
                        <div class="exchange-tags">
                            <span class="exchange-tag seek-tag">摄影技巧</span>
                            <span class="exchange-tag seek-tag">人像摄影</span>
                            <span class="exchange-tag seek-tag">风光摄影</span>
                            <span class="exchange-tag seek-tag">后期修图</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 图片展示区 -->
            <div class="images-section">
                <div class="images-grid">
                    <div class="image-item">
                        <img src="https://picsum.photos/id/119/300/300" alt="设计作品1">
                    </div>
                    <div class="image-item">
                        <img src="https://picsum.photos/id/133/300/300" alt="设计作品2">
                    </div>
                    <div class="image-item">
                        <img src="https://picsum.photos/id/142/300/300" alt="设计作品3">
                    </div>
                </div>
            </div>
            
            <!-- 详情标签 -->
            <div class="detail-tags">
                <span class="detail-tag">线上教学</span>
                <span class="detail-tag">线下见面</span>
                <span class="detail-tag">一对一</span>
                <span class="detail-tag">设计</span>
                <span class="detail-tag">摄影</span>
            </div>
        </div>
    </div>
    
    <!-- 操作工具栏 -->
    <div class="action-toolbar">
        <div class="toolbar-action" id="likeAction">
            <i class="fas fa-heart action-icon"></i>
            <span>点赞</span>
        </div>
        <div class="toolbar-action" id="collectAction">
            <i class="fas fa-bookmark action-icon"></i>
            <span>收藏</span>
        </div>
        <div class="toolbar-action" id="reportAction">
            <i class="fas fa-flag action-icon"></i>
            <span>举报</span>
        </div>
        <div class="toolbar-action" id="moreAction">
            <i class="fas fa-ellipsis-h action-icon"></i>
            <span>更多</span>
        </div>
    </div>
    
    <!-- 留言区 -->
    <div class="comments-section">
        <div class="comments-header">
            <div class="comments-title">留言区</div>
            <div class="comments-count">24条留言</div>
        </div>
        
        <!-- 留言输入框 -->
        <div class="comment-input-container">
            <img src="https://picsum.photos/id/237/200/200" alt="我的头像" class="comment-avatar">
            <div class="comment-input-box">
                <textarea class="comment-input" placeholder="写下你的留言..."></textarea>
                <button class="send-comment" id="sendComment">
                    <i class="fas fa-paper-plane"></i>
                </button>
            </div>
        </div>
        
        <!-- 留言列表 -->
        <div class="comments-list">
            <!-- 留言1 -->
            <div class="comment-item">
                <img src="https://picsum.photos/id/91/200/200" alt="王建国" class="comment-avatar">
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">王建国</div>
                        <div class="comment-time">2天前</div>
                    </div>
                    <div class="comment-text">
                        我是一名摄影师，有6年经验，主要拍摄人像和风光。我正好想学习UI设计，我们可以互相学习！
                    </div>
                    <div class="comment-actions">
                        <div class="comment-action" data-id="1">
                            <i class="far fa-heart"></i>
                            <span>12</span>
                        </div>
                        <div class="comment-action reply-btn" data-id="1" data-author="王建国">
                            <i class="far fa-comment"></i>
                            <span>回复</span>
                        </div>
                    </div>
                    
                    <!-- 回复列表 -->
                    <div class="replies-list">
                        <div class="reply-item">
                            <img src="https://picsum.photos/id/64/200/200" alt="陈佳琪" class="comment-avatar">
                            <div class="reply-content">
                                <div class="comment-header">
                                    <div class="comment-author">陈佳琪</div>
                                    <div class="comment-time">1天前</div>
                                </div>
                                <div class="reply-text">
                                    <span>@王建国</span> 太好了！我们可以加个好友详细聊聊~
                                </div>
                                <div class="comment-actions">
                                    <div class="comment-action" data-id="1-1">
                                        <i class="far fa-heart"></i>
                                        <span>5</span>
                                    </div>
                                    <div class="comment-action reply-btn" data-id="1-1" data-author="陈佳琪">
                                        <i class="far fa-comment"></i>
                                        <span>回复</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 留言2 -->
            <div class="comment-item">
                <img src="https://picsum.photos/id/65/200/200" alt="张婷" class="comment-avatar">
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">张婷</div>
                        <div class="comment-time">3天前</div>
                    </div>
                    <div class="comment-text">
                        你的设计作品很棒！我也想学UI设计，但我只会一点基础摄影，不知道能不能和你交换？
                    </div>
                    <div class="comment-actions">
                        <div class="comment-action" data-id="2">
                            <i class="far fa-heart"></i>
                            <span>8</span>
                        </div>
                        <div class="comment-action reply-btn" data-id="2" data-author="张婷">
                            <i class="far fa-comment"></i>
                            <span>回复</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 留言3 -->
            <div class="comment-item">
                <img src="https://picsum.photos/id/22/200/200" alt="李强" class="comment-avatar">
                <div class="comment-content">
                    <div class="comment-header">
                        <div class="comment-author">李强</div>
                        <div class="comment-time">3天前</div>
                    </div>
                    <div class="comment-text">
                        我推荐你先看《摄影构图入门》这本书，对新手很有帮助。我也在学设计，有空可以交流~
                    </div>
                    <div class="comment-actions">
                        <div class="comment-action" data-id="3">
                            <i class="far fa-heart"></i>
                            <span>3</span>
                        </div>
                        <div class="comment-action reply-btn" data-id="3" data-author="李强">
                            <i class="far fa-comment"></i>
                            <span>回复</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 加载更多留言 -->
        <div class="load-more" id="loadMoreComments">
            <span>加载更多留言</span>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <div class="nav-item">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-compass nav-icon"></i>
            <span>发现</span>
        </div>
        <div class="nav-item active">
            <i class="fas fa-exchange-alt nav-icon"></i>
            <span>技能交换</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-bell nav-icon"></i>
            <span>通知</span>
        </div>
        <div class="nav-item">
            <i class="fas fa-user nav-icon"></i>
            <span>我的</span>
        </div>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 联系按钮
        document.getElementById('contactBtn').addEventListener('click', function() {
            showToast('打开与陈佳琪的聊天窗口');
        });
        
        // 关注按钮
        document.getElementById('followBtn').addEventListener('click', function() {
            const isFollowing = this.innerHTML.includes('已关注');
            if (isFollowing) {
                this.innerHTML = '<i class="fas fa-plus"></i> 关注';
                showToast('已取消关注');
            } else {
                this.innerHTML = '<i class="fas fa-check"></i> 已关注';
                showToast('关注成功');
            }
        });
        
        // 点赞功能
        document.getElementById('likeAction').addEventListener('click', function() {
            this.classList.toggle('active');
            const icon = this.querySelector('.action-icon');
            if (this.classList.contains('active')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
                showToast('点赞成功');
            } else {
                icon.classList.remove('fas');
                icon.classList.add('far');
                showToast('取消点赞');
            }
        });
        
        // 收藏功能
        document.getElementById('collectAction').addEventListener('click', function() {
            this.classList.toggle('active');
            const icon = this.querySelector('.action-icon');
            if (this.classList.contains('active')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
                showToast('收藏成功');
            } else {
                icon.classList.remove('fas');
                icon.classList.add('far');
                showToast('取消收藏');
            }
        });
        
        // 举报功能
        document.getElementById('reportAction').addEventListener('click', function() {
            showToast('举报功能已打开');
        });
        
        // 更多功能
        document.getElementById('moreAction').addEventListener('click', function() {
            showToast('更多选项已打开');
        });
        
        // 分享功能
        document.getElementById('shareBtn').addEventListener('click', function() {
            showToast('分享链接已复制');
        });
        
        // 返回按钮
        document.getElementById('backBtn').addEventListener('click', function() {
            history.back();
        });
        
        // 发送留言
        document.getElementById('sendComment').addEventListener('click', function() {
            const input = document.querySelector('.comment-input');
            const text = input.value.trim();
            if (text) {
                showToast('留言发送成功');
                input.value = '';
            } else {
                showToast('请输入留言内容');
            }
        });
        
        // 留言点赞
        document.querySelectorAll('.comment-action i.far.fa-heart').forEach(icon => {
            icon.parentElement.addEventListener('click', function() {
                const isLiked = this.querySelector('i').classList.contains('fas');
                const countEl = this.querySelector('span');
                let count = parseInt(countEl.textContent);
                
                if (isLiked) {
                    this.querySelector('i').classList.remove('fas');
                    this.querySelector('i').classList.add('far');
                    countEl.textContent = count - 1;
                    showToast('取消点赞');
                } else {
                    this.querySelector('i').classList.remove('far');
                    this.querySelector('i').classList.add('fas');
                    countEl.textContent = count + 1;
                    showToast('点赞成功');
                }
            });
        });
        
        // 回复功能
        document.querySelectorAll('.reply-btn').forEach(btn => {
            btn.addEventListener('click', function() {
                const author = this.getAttribute('data-author');
                const input = document.querySelector('.comment-input');
                input.value = `@${author} `;
                input.focus();
                // 自动调整输入框高度
                input.style.height = 'auto';
                input.style.height = (input.scrollHeight > 40 ? input.scrollHeight : 40) + 'px';
            });
        });
        
        // 留言输入框高度自适应
        document.querySelector('.comment-input').addEventListener('input', function() {
            this.style.height = 'auto';
            // 限制最大高度
            if (this.scrollHeight > 100) {
                this.style.height = '100px';
                this.style.overflowY = 'auto';
            } else {
                this.style.height = this.scrollHeight + 'px';
                this.style.overflowY = 'hidden';
            }
        });
        
        // 加载更多留言
        document.getElementById('loadMoreComments').addEventListener('click', function() {
            this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> 加载中...';
            
            // 模拟加载延迟
            setTimeout(() => {
                this.innerHTML = '<span>没有更多留言了</span>';
            }, 1500);
        });
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
    </script>
</body>
</html>



